package com.example.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.concurrent.TimeUnit;

/**
 * 本类用来演示:
 *
 * @Author 胡英俊
 * @Date 2022/7/14 22:16
 */
@RestController
public class orderController {

    @GetMapping("getOrder")
    public String getOrder() throws InterruptedException {
        TimeUnit.SECONDS.sleep(2);
        return "宝子";
    }
}
